package com.ghxxzx.dagl.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ghxxzx.dagl.entity.GryfKj;
import com.ghxxzx.dagl.entity.GryfKjRg;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * @Author: 刘华
 * @Date: 2020/11/16 11:02
 * @Version 1.0
 */
@Repository
public interface GryfKjRgMapper extends BaseMapper<GryfKjRg> {
    @Select("SELECT * FROM `gryf_kj_rg` where dabh=#{dabh} LIMIT 1")
    GryfKjRg findByDabh(String dabh);

    @Select("SELECT type_id FROM gryf_kj_rg WHERE dabh=#{dabh}")
    Integer findByDanbh(@Param("dabh")String dabh);
}
